package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.business.dto.request.create.PaymentBizCreateDto;
import com.molichuxing.services.infrastructure.dto.response.AlipayResultDto;
import com.molichuxing.services.infrastructure.dto.response.PrepaymentDto;
import com.molichuxing.services.infrastructure.dto.response.UnionpayResultDto;

import java.util.Map;

public interface UnionpayService extends RootService {

	/**
	 * 统一下单(预支付单)
	 * @return
	 * @throws Exception
	 */
	public PrepaymentDto orderPay(PaymentBizCreateDto createDto) throws Exception;


	/**
	 * 支付结果异步通知解析
	 *
	 * @param notifyParam
	 * @throws Exception
	 */
	public UnionpayResultDto notifyPay(Map<String, String> notifyParam) throws Exception;

}
